package io.github.biezhi.elves.utils;

/**
 * 基础POJO类
 *
 */
public class AbstractObject {
	/**s
	 * 浅度克隆
	 * 
	 * @param clazz
	 * @return
	 * @throws Exception
	 */
	public <T> T clone(Class<T> clazz) throws Exception {
		T target = clazz.newInstance();
		BeanCopierUtils.copyProperties(this, target);
		return target;
	}
}